package edu.fight.dao;

import edu.fight.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.Date;

@Mapper
public interface UserDao {
    Date queryDate();

    @Select("select t.* from t_user t where t.name = #{username}")
    User findByUsername(@Param("username")String username);
}
